package com.pauldada.sakurabbs.services;

import com.pauldada.sakurabbs.entities.WebSite;

import java.util.List;
import java.util.Optional;

//帖子网址Service接口
public interface WebSiteService {

	//添加或者保存帖子网址
    void save(WebSite webSite);
	
	//根据id删除帖子网址
    void delete(Integer id);
	
	//根据id查询实体
    Optional<WebSite> findById(Integer id);
	
	//根据条件分页查询帖子网址信息
    List<WebSite> list(WebSite webSite, Integer page, Integer pageSize);
	
	//获取总记录数
    Long getCount(WebSite webSite);
}
